<?php
/**
 * ccNewsletter
 * @author Chill Creations <info@chillcreations.com>
 * @link http://www.chillcreations.com
 * @license GNU/GPL
**/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
<fieldset class="adminform">
<legend><?php echo JText::_( 'CC_EMAIL_SENT_FROM' ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="fromName">
					<?php echo JText::_( 'CC_NAME' ); ?>:
				</label>
			</td>
			<td><?php echo $this->fromName;?><input type="text" name="fromName" value="<?php echo $this->fromName;?>" style="visibility: hidden"/>
			</td>
		</tr>
    	<tr>
			<td width="100" align="right" class="key">
				<label for="fromEmail">
					<?php echo JText::_( 'CC_EMAIL_ADDRESS' ); ?>:
				</label>
			</td>
			<td>
				<?php echo $this->fromEmail;?><input type="text" name="fromEmail" value="<?php echo $this->fromEmail;?>" style="visibility: hidden"/>
			</td>
		</tr>
        	<tr>
			<td width="100" align="right" class="key">
				<label for="fromEmail">
					<?php echo JText::_( 'CC_EMAIL_SUBJECT' ); ?>:
				</label>
			</td>
			<td>
				<?php echo $this->subject;?><input type="text" name="subject" value="<?php echo $this->subject;?>" style="visibility: hidden"/>
			</td>
		</tr>
	</table>
	</fieldset>
<fieldset class="adminform">
<legend><?php echo JText::_( 'CC_NEWSLETTER_TO_SEND' ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="Newsletter">
					<?php echo JText::_( 'CC_NEWSLETTER' ); ?>:
				</label>
			</td>
			<td>
				<?php echo $this->lists;?>
			</td>
		</tr>

	</table>
	</fieldset>
<fieldset class="adminform">
<legend><?php echo JText::_( 'CC_NEWSLETTER_PREVIEW' ); ?></legend>
<?php
        echo $this->newsletterForPreviewBody->body;
        echo '<textarea id="body" name="body" style="visibility: hidden">';
        echo $this->newsletterForPreviewBody->body;
        echo '</textarea>';
?>
        	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_ccNewsletter" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="sendNewsletter" />
</form>
<p class="copyright" align="center">
ccNewsletter, Joomla! component by <a href="http://www.extensions.chillcreations.com" target="_blank">Chill Creations</a>  Copyright <?php echo date("Y") ?>
</p>
